package com.demo.chattest.bean;

/**
 * @Package com.demo.chattest.bean
 * @Describe class描述
 * @Author wugx
 * @Date 2020-09-25
 */
public class MessageInfo {
    /**
     * 自身Id 唯一（自己生成）
     */
    private String id;
    /**
     * 消息Id 唯一（服务端返回）
     */
    private String msgId;
    /**
     * 发送者 UID
     */
    private String fromUid;
    /**
     * 发送者 头像
     */
    private String fromHeadImg;
    /**
     * 发送者 名称
     */
    private String fromUName;

    /**
     * 接收者类型 1：全员  2：群 3：单人
     */
    private int targetType;
    /**
     * 接收者 UID
     */
    private String targetUid;
    /**
     * 接收者 头像
     */
    private String targetHeadImg;
    /**
     * 接收者 名称
     */
    private String targetUName;
    /**
     * 发送 时间
     */
    private long time;
    /**
     * 1开头发送  2开头接收
     * 消息-类型 11：发送普通消息 21：接收普通消息  12：发送图片  22：接收图片  13：发送音频 23：接收音频  14：发送视频  24：接收视频
     */
    private int type;
    /**
     * 消息-内容
     */
    private String msg;
    /**
     * 消息-图片地址
     */
    private String imgUrl;
    /**
     * 消息-图片缩略图地址
     */
    private String imgThumbUrl;
    /**
     * 消息-音频地址
     */
    private String audioUrl;
    /**
     * 消息-音频时长
     */
    private int audioDuration;
    /**
     * 消息-视频地址
     */
    private String videoUrl;
    /**
     * 消息-视频缩略图地址
     */
    private String videoThumbUrl;
    /**
     * 消息-媒体信息状态 0：正常 1：播放  2：暂停
     */
    private int mediaState;
    /**
     * 消息  0：未读 1：已读
     */
    private int msgRead;
    /**
     * 消息-状态 0：发送 1：成功  2：失败
     */
    private int status;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getFromUid() {
        return fromUid;
    }

    public void setFromUid(String fromUid) {
        this.fromUid = fromUid;
    }

    public String getFromHeadImg() {
        return fromHeadImg;
    }

    public void setFromHeadImg(String fromHeadImg) {
        this.fromHeadImg = fromHeadImg;
    }

    public String getFromUName() {
        return fromUName;
    }

    public void setFromUName(String fromUName) {
        this.fromUName = fromUName;
    }

    public int getTargetType() {
        return targetType;
    }

    public void setTargetType(int targetType) {
        this.targetType = targetType;
    }

    public String getTargetUid() {
        return targetUid;
    }

    public void setTargetUid(String targetUid) {
        this.targetUid = targetUid;
    }

    public String getTargetHeadImg() {
        return targetHeadImg;
    }

    public void setTargetHeadImg(String targetHeadImg) {
        this.targetHeadImg = targetHeadImg;
    }

    public String getTargetUName() {
        return targetUName;
    }

    public void setTargetUName(String targetUName) {
        this.targetUName = targetUName;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getImgThumbUrl() {
        return imgThumbUrl;
    }

    public void setImgThumbUrl(String imgThumbUrl) {
        this.imgThumbUrl = imgThumbUrl;
    }

    public String getAudioUrl() {
        return audioUrl;
    }

    public void setAudioUrl(String audioUrl) {
        this.audioUrl = audioUrl;
    }

    public int getAudioDuration() {
        return audioDuration;
    }

    public void setAudioDuration(int audioDuration) {
        this.audioDuration = audioDuration;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public String getVideoThumbUrl() {
        return videoThumbUrl;
    }

    public void setVideoThumbUrl(String videoThumbUrl) {
        this.videoThumbUrl = videoThumbUrl;
    }

    public int getMediaState() {
        return mediaState;
    }

    public void setMediaState(int mediaState) {
        this.mediaState = mediaState;
    }

    public int getMsgRead() {
        return msgRead;
    }

    public void setMsgRead(int msgRead) {
        this.msgRead = msgRead;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "MessageInfo{" +
                "id='" + id + '\'' +
                ", msgId='" + msgId + '\'' +
                ", fromUid='" + fromUid + '\'' +
                ", fromHeadImg='" + fromHeadImg + '\'' +
                ", fromUName='" + fromUName + '\'' +
                ", targetType=" + targetType +
                ", targetUid='" + targetUid + '\'' +
                ", targetHeadImg='" + targetHeadImg + '\'' +
                ", targetUName='" + targetUName + '\'' +
                ", time=" + time +
                ", type=" + type +
                ", msg='" + msg + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", imgThumbUrl='" + imgThumbUrl + '\'' +
                ", audioUrl='" + audioUrl + '\'' +
                ", audioDuration=" + audioDuration +
                ", videoUrl='" + videoUrl + '\'' +
                ", videoThumbUrl='" + videoThumbUrl + '\'' +
                ", mediaState=" + mediaState +
                ", msgRead=" + msgRead +
                ", status=" + status +
                '}';
    }
}
